﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="School_Management.Register" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="bodyContent" runat="server">
     <h2>
        Create a New Account
     </h2>
     
         <h4>Use the form below to create a new account.</h4>
      
              <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" ForeColor="Red" ValidationGroup="RegisterUserValidationGroup"/>              
                            <h4>Account Information</h4>
                            <div class="table">
                                <div class="row">
                                    <div class="cell1">
                                        <asp:Label ID="UserNameLabel" runat="server">User Name:</asp:Label>       
                                    </div>
                                    <div class="cell1">
                                        <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" 
                                             ErrorMessage="User Name is required." ToolTip="User Name is required." 
                                             ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                                     </div>
                                 </div>
                                 <br />
                                  <div class="row">
                                    <div class="cell1">
                                    <asp:Label ID="EmailLabel" class="lbldisplay" runat="server" >E-mail:</asp:Label>
                                     </div>
                                    <div class="cell1">
                                        <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email" 
                                             ErrorMessage="E-mail is required." ToolTip="E-mail is required." 
                                             ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                                     </div>
                                 </div>
                                 <br />
                                 <div class="row">
                                    <div class="cell1">
                                    <asp:Label ID="PasswordLabel" class="lbldisplay" runat="server">Password:</asp:Label>
                                     </div>
                                    <div class="cell1">
                                        <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" 
                                             ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                                     </div>
                                 </div>
                                 <br />
                                 <div class="row">
                                     <div class="cell1">
                                    <asp:Label ID="ConfirmPasswordLabel" class="lbldisplay" runat="server" >Confirm Password:</asp:Label>
                                     </div>
                                    <div class="cell1">
                                            <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                                            <asp:RequiredFieldValidator ControlToValidate="ConfirmPassword" Display="Dynamic" 
                                                 ErrorMessage="Confirm Password is required." ID="ConfirmPasswordRequired" runat="server" 
                                                 ToolTip="Confirm Password is required." ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                                            <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password" ControlToValidate="ConfirmPassword" 
                                                  Display="Dynamic" ErrorMessage="The Password and Confirmation Password must match."
                                                 ValidationGroup="RegisterUserValidationGroup">*</asp:CompareValidator>
                                     </div>
                                 </div>
                            <br />
                            <div class="row">
                                     <div class="cell1">
                                     </div>
                                      <div class="cell1">
                                           <asp:Button ID="CreateUserButton" runat="server" Text="Create User" 
                                             ValidationGroup="RegisterUserValidationGroup" 
                                            onclick="CreateUserButton_Click"/>
                                    </div>
                                </div>
                      </div>
</asp:Content>
